﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;

namespace Acadsoc.Middleware
{
    public class CustomIdentity : IIdentity
    {
        private CustomUser _user;
        public CustomIdentity(CustomUser user)
        {
            _user = user;
        }
        public string AuthenticationType
        {
            get
            {
                return _user.AuthenticationType;
            }
        }

        public bool IsAuthenticated
        {
            get
            {
                return _user.IsAuthenticated;
            }
        }

        public string Name
        {
            get
            {
                return _user.Name;
            }
        }
    }
}
